from pydantic import BaseModel, ConfigDict, EmailStr


class UserSchema(BaseModel):
    model_config = ConfigDict(strict=True)

    username: str
    hashed_password: bytes
    email: EmailStr | None = None
    phone: str | None = None
    active: bool = True


class TgChatReferSchema(BaseModel):
    chat_id: int
    tg_user_id: int
